package utils.output.html;

import parser.date_parser;
import utils.utils_parser;

public class Link {

	public Link(){
		
	}
	
	public String getlink_for_combat(String filename){
		String[] temp = filename.split("_");
		String start = temp[1];
		String stop = temp[2].substring(0, temp[2].indexOf("."));
		String result = "<a href=\""+filename+"\">";
		result += date_parser.get_time_formated(Long.parseLong(start))+" - "+date_parser.get_time_formated(Long.parseLong(stop));
		result += "</a>";
		return result;
	}
	
	public String getlink(String filename){
		String result = "<a href=\""+filename+"\">";
		result += filename;
		result += "</a>";
		return result;
	}
}
